package com.test;

/**
 * 测试
 * @since 14:52
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class Demo {
    public static void main(String[] args) {
        System.out.println("hello world!");
    }

    public static void test(int weekDayNum) {
        switch (weekDayNum) {
            case 1:
                break;
            case 2:
                break;
            // ...
            case 7:
                break;
        }

    }

    public static void test(WeekDayNum day){
        switch (day){
            case MONDAY:
                break;
            case TUESDAY:
                break;
            // ...
            case SUNDAY:
                break;
        }
    }
}
enum WeekDayNum {
    MONDAY, TUESDAY, WEDNESDAY,
    THURSDAY, FRIDAY, SATURDAY, SUNDAY
}
// class WeekDayNum {
//
//     public static final int MONDAY = 1;
//
//     public static final int TUESDAY = 2;
//
//     public static final int WEDNESDAY = 3;
//
//     public static final int THURSDAY = 4;
//
//     public static final int FRIDAY = 5;
//
//     public static final int SATURDAY = 6;
//
//     public static final int SUNDAY = 7;
//
// }


enum Color {
    GREEN, RED
}